<?php

namespace api\web\controller;
use api\web\model\NavModel;
use cmf\controller\RestBaseController;
use think\facade\Db;

class NavController extends RestBaseController
{
    public function index(){
        $list = NavModel::with('child')
            ->where('parent_id','=',0)
            ->select();

        $this->success('查询中餐学院导航列表查询成功',$list);
    }
}